<?php
namespace Home\Controller;
use Think\Controller;
/**
 * 初始化
 */
 class HomeController extends Controller{

    public function _initialize(){
        if(session('is_Login')!=1)
        {
            $this->redirect('User/index');
            exit;
        }
        
    }
 }